Optimal. Leaf size=34 \[ \frac{a^3 B c^3 \cos ^7(e+f x) (c-c \sin (e+f x))^{n-3}}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.273913, antiderivative size = 34, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 46, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.043, Rules used = {2967, 2854} \[ \frac{a^3 B c^3 \cos ^7(e+f x) (c-c \sin (e+f x))^{n-3}}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2967
Rule 2854
Rubi steps
\begin{align*} \int (a+a \sin (e+f x))^3 (c-c \sin (e+f x))^n (B (3-n)-B (4+n) \sin (e+f x)) \, dx &=\left (a^3 c^3\right ) \int \cos ^6(e+f x) (c-c \sin (e+f x))^{-3+n} (B (3-n)-B (4+n) \sin (e+f x)) \, dx\\ &=\frac{a^3 B c^3 \cos ^7(e+f x) (c-c \sin (e+f x))^{-3+n}}{f}\\ \end{align*}
Mathematica [A] time = 0.52944, size = 63, normalized size = 1.85 \[ \frac{a^3 B (14 \sin (2 (e+f x))-\sin (4 (e+f x))+14 \cos (e+f x)-6 \cos (3 (e+f x))) (c-c \sin (e+f x))^n}{8 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 2.334, size = 0, normalized size = 0. \begin{align*} \int \left ( a+a\sin \left ( fx+e \right ) \right ) ^{3} \left ( c-c\sin \left ( fx+e \right ) \right ) ^{n} \left ( B \left ( 3-n \right ) -B \left ( 4+n \right ) \sin \left ( fx+e \right ) \right ) \, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -\int{\left (B{\left (n + 4\right )} \sin \left (f x + e\right ) + B{\left (n - 3\right )}\right )}{\left (a \sin \left (f x + e\right ) + a\right )}^{3}{\left (-c \sin \left (f x + e\right ) + c\right )}^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.98062, size = 185, normalized size = 5.44 \begin{align*} -\frac{{\left (3 \, B a^{3} \cos \left (f x + e\right )^{3} - 4 \, B a^{3} \cos \left (f x + e\right ) +{\left (B a^{3} \cos \left (f x + e\right )^{3} - 4 \, B a^{3} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )}{\left (-c \sin \left (f x + e\right ) + c\right )}^{n}}{f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -{\left (B{\left (n + 4\right )} \sin \left (f x + e\right ) + B{\left (n - 3\right )}\right )}{\left (a \sin \left (f x + e\right ) + a\right )}^{3}{\left (-c \sin \left (f x + e\right ) + c\right )}^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]